package com.catchdays.util;

import android.util.Log;

public class StringArrayUtils {
	private static final String TAG = "StringArrayUtils";

	public static String get(String[] array, int number) {
		String result = "";
		int index = number - 1;

		if (index < 0) {
			return result;
		}

		try {
			result = array[index];
		} catch (IndexOutOfBoundsException e) {
			Log.e(TAG, "", e);
		}

		return result;
	}
}
